<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Click Statistics</title>
    <link rel="stylesheet" href="styles.css">
</head>

<body>
    <div class="container">
        <!-- 标题 -->
        <div class="header">
            <h1>Click Tracker</h1>
        </div>

        <!-- 统计数据 -->
        <div class="stats">
            <div class="stat-item">
                <div class="stat-number" id="totalClicks">
                    <span class="number-value">0</span>
                </div>
                <div class="stat-label">Total Clicks</div>
            </div>

            <div class="stat-item">
                <div class="stat-number" id="dailyClicks">
                    <span class="number-value">0</span>
                </div>
                <div class="stat-label">Today's Clicks</div>
            </div>
        </div>

        <!-- 点击历史 -->
        <div class="history-section">
            <div class="history-header">
                <h3>Click History</h3>
                <button class="btn-link" id="viewMoreBtn">View More</button>
            </div>
            <div class="history-list" id="clickHistory">
                <div class="loading">Loading...</div>
            </div>
        </div>

        <!-- 操作按钮 -->
        <div class="actions">
            <button class="btn btn-primary" id="refreshBtn">Refresh Data</button>
            <button class="btn btn-danger" id="resetBtn">Reset Statistics</button>
        </div>
    </div>

    <script src="popup.js"></script>
</body>

</html>